package com.tuanzi.loan.business.service.family;

import com.tuanzi.loan.business.entity.family.MemberRights;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.MemberRightsRequest;
import com.tuanzi.loan.vo.response.family.MemberRightsResponse;
import com.tuanzi.loan.vo.view.family.MemberRightsView;
import org.springframework.data.domain.Page;

import java.lang.reflect.InvocationTargetException;

public interface MemberRightsService {

    Page<MemberRightsResponse> list(PageSearcher<MemberRightsRequest> pageSearcher);

    MemberRights saveOrUpdateRights(MemberRightsView rightsView) throws InvocationTargetException, IllegalAccessException;

    void deleteRights(Long id);

    MemberRightsView getMemberRightsView(Long id);
}
